/*
 * Selling Partner API for Fulfillment Inbound
 * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
 *
 * OpenAPI spec version: v0
 */


package com.dhecp.project.api.domain;

import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Objects;

/**
 * The manual processing fee per unit and total fee for a shipment.
 */
@ApiModel(description = "The manual processing fee per unit and total fee for a shipment.")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-10-14T16:02:28.581+08:00")
public class BoxContentsFeeDetails {
  @SerializedName("TotalUnits")
  private Integer totalUnits = null;

  @SerializedName("FeePerUnit")
  private Amount feePerUnit = null;

  @SerializedName("TotalFee")
  private Amount totalFee = null;

  public BoxContentsFeeDetails totalUnits(Integer totalUnits) {
    this.totalUnits = totalUnits;
    return this;
  }

   /**
   * The number of units to ship.
   * @return totalUnits
  **/
  @ApiModelProperty(value = "The number of units to ship.")
  public Integer getTotalUnits() {
    return totalUnits;
  }

  public void setTotalUnits(Integer totalUnits) {
    this.totalUnits = totalUnits;
  }

  public BoxContentsFeeDetails feePerUnit(Amount feePerUnit) {
    this.feePerUnit = feePerUnit;
    return this;
  }

   /**
   * The manual processing fee per unit.
   * @return feePerUnit
  **/
  @ApiModelProperty(value = "The manual processing fee per unit.")
  public Amount getFeePerUnit() {
    return feePerUnit;
  }

  public void setFeePerUnit(Amount feePerUnit) {
    this.feePerUnit = feePerUnit;
  }

  public BoxContentsFeeDetails totalFee(Amount totalFee) {
    this.totalFee = totalFee;
    return this;
  }

   /**
   * The total manual processing fee for the shipment.
   * @return totalFee
  **/
  @ApiModelProperty(value = "The total manual processing fee for the shipment.")
  public Amount getTotalFee() {
    return totalFee;
  }

  public void setTotalFee(Amount totalFee) {
    this.totalFee = totalFee;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    BoxContentsFeeDetails boxContentsFeeDetails = (BoxContentsFeeDetails) o;
    return Objects.equals(this.totalUnits, boxContentsFeeDetails.totalUnits) &&
        Objects.equals(this.feePerUnit, boxContentsFeeDetails.feePerUnit) &&
        Objects.equals(this.totalFee, boxContentsFeeDetails.totalFee);
  }

  @Override
  public int hashCode() {
    return Objects.hash(totalUnits, feePerUnit, totalFee);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class BoxContentsFeeDetails {\n");
    
    sb.append("    totalUnits: ").append(toIndentedString(totalUnits)).append("\n");
    sb.append("    feePerUnit: ").append(toIndentedString(feePerUnit)).append("\n");
    sb.append("    totalFee: ").append(toIndentedString(totalFee)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}

